package org.ntu.csn.doraemon.tool;

import javax.microedition.lcdui.Image;



public class GameTools {
  protected GameTools() {
  }
  
  public static Image getImage(String str){
	    Image img=null;
	    try {
	      img = Image.createImage(str);
	    }
	    catch (Exception ex) {
	      System.out.println(ex);
	    }
	    finally{
	      return img;
	    }
	    }

  public static String timeOpinion(long gametime){
    if(gametime<10){
      return "Do you play with your foot?";
      //return "i can't belive,your are a game master";
    }else if(gametime<16){
      return "come boy, you can do it!";
    }else if(gametime<20){
      return "what a pity! try again.";
    }else if(gametime<25){
      return "very well, you are a real man.";
    }else if(gametime<30){
      return "i know you have talent of this game.";
    }else if(gametime<40){
      return "i can't belive, your are a game master.";
    }else{
      return "oh my god, are you a human?";
    }
  }
}